<?php 
/*
* 首页日志列表部分
*/
if(!defined('EMLOG_ROOT')) {exit('error!');} 
?>
<div id="content" class="content">
	<div id="contentleft" class="log log-list">
	<div class="log-box">
		<?php doAction('index_loglist_top'); ?>
	</div>
	<?php foreach($logs as $value): ?>
	<div class="log-box">
		<h2 class="log-title">
			<?php topflg($value['top']); ?>
			<a href="<?php echo $value['log_url']; ?>">
				<?php echo $value['log_title']; ?>
			</a>
		</h2>
		<div class="log-content">
			<?php echo $value['log_description']; ?>
		</div>		
		<div class="log-date">
			<span>
				Published by <?php blog_author($value['author']); ?>,
			</span>
			<span>
				on <?php echo gmdate('Y-n-j G:i l', $value['date']); ?>.
			</span>
			<span>
				<?php blog_sort($value['logid']); ?>
			</span>
			<span class="tags">
				<?php blog_tag($value['logid']); ?>•
			</span>
			
			<span class="count">
				
				<a href="<?php echo $value['log_url']; ?>#comments">
					<span><?php echo $value['comnum']; ?></span>Comments,
				</a>
				<a href="<?php echo $value['log_url']; ?>#tb">
					<span><?php echo $value['tbcount']; ?></span>Recommend,

				</a>
				<a href="<?php echo $value['log_url']; ?>">
					<span><?php echo $value['views']; ?></span>View,
				</a>
			</span>
			<span>
				<?php editflg($value['logid'],$value['author']); ?>
			</span>
		</div>
	</div><!--log-box-->
	<?php endforeach; ?>

	<div id="pagenavi" class="page-nav">
		<?php echo $page_url;?>
	</div>

	</div><!-- end #contentleft-->
<?php
 include View::getView('side');
 include View::getView('footer');
?>